import request from '@/utils/request'

// 查询机型试剂代码列表
export function listMachineReagentCode(query) {
  return request({
    url: '/product/machineReagentCode/list',
    method: 'get',
    params: query
  })
}

// 查询机型试剂代码详细
export function getMachineReagentCode(machineType) {
  return request({
    url: '/product/machineReagentCode/' + machineType,
    method: 'get'
  })
}

// 新增机型试剂代码
export function addMachineReagentCode(data) {
  return request({
    url: '/product/machineReagentCode',
    method: 'post',
    data: data
  })
}
// 批量新增机型试剂代码
export function addMachineReagentCodeBatch(data) {
  return request({
    url: '/product/machineReagentCode/addBatch',
    method: 'post',
    data: data
  })
}
// 修改机型试剂代码
export function updateMachineReagentCode(data) {
  return request({
    url: '/product/machineReagentCode',
    method: 'put',
    data: data
  })
}

// 删除机型试剂代码
export function delMachineReagentCode(machineType) {
  return request({
    url: '/product/machineReagentCode/' + machineType,
    method: 'delete'
  })
}

// 导出机型试剂代码
export function exportMachineReagentCode(query) {
  return request({
    url: '/product/machineReagentCode/export',
    method: 'get',
    params: query
  })
}
